﻿using System.Collections.Generic;
using BLL.Model.Repositories;
using BLL.Model.Schema;

namespace BLL.LedgerManagement
{
    public class LedgerManager
    {
        private ILedgerRepository _ledgerRepository;
        public LedgerManager(ILedgerRepository ledgerRepository)
        {
            _ledgerRepository = ledgerRepository;
        }

        public IList<Ledger> GetLedgerBook(int projectId, int headId, bool isCashBankShown = false)
        {            
            return _ledgerRepository.GetLedger(projectId, headId);
        }
    }
}
